import Vue from 'vue'
import App from './App.vue'
import router from '@/router/index.js'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import {  findByvalue } from './util/util'
Vue.config.productionTip = false
Vue.use(ElementUI);
import echarts from 'echarts';
Vue.prototype.$echarts = echarts;

// vue-router跳转报错Navigation cancelled from“/...“ to “/...“ with a new navigation
import Router from 'vue-router'

const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
  return originalPush.call(this, location).catch(err => err)
}

Vue.filter("byValue", findByvalue);
new Vue({
  router,
  render: h => h(App)
  
}).$mount('#app')
